import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/login'
const Home = () => import ('@/pages/index.vue')
const Shopmanage = () => import ('@/pages/shopmanage.vue')
const Addshop = () => import ('@/pages/addshop.vue')
const Usergoodslist = () => import ('@/pages/usergoodslist.vue')
const Userorder = () => import ('@/pages/userorder.vue')
const Billmanage = () => import ('@/pages/billmanage.vue')
const Billedit = () => import ('@/pages/billedit.vue')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    { path: '/index', name: 'Home', component: Home },
    { path: '/shopmanage', name: 'Shopmanage', component: Shopmanage },
    { path: '/addshop', name: 'Addshop', component: Addshop },
    { path: '/usergoodslist', name: 'Usergoodslist', component: Usergoodslist },
    { path: '/userorder', name: 'Userorder', component: Userorder },
    { path: '/billmanage', name: 'Billmanage', component: Billmanage },
    { path: '/billedit', name: 'Billedit', component: Billedit }
  ]
})
